gtk4.git
10 years agoboxgadget: Don't use g_assert
Timm Bäder [Wed, 13 Jan 2016 18:24:46 +0000 (19:24 +0100)]
boxgadget: Don't use g_assert

Use g_return_if_fail instead so nothing abort()s.

10 years agoentry: Don't draw icons twice
Timm Bäder [Wed, 13 Jan 2016 18:14:33 +0000 (19:14 +0100)]
entry: Don't draw icons twice

10 years agoentry: Remove unused code
Timm Bäder [Wed, 13 Jan 2016 18:11:24 +0000 (19:11 +0100)]
entry: Remove unused code

10 years agolabel: Remove some unneeded conditionals
Timm Bäder [Wed, 13 Jan 2016 18:07:20 +0000 (19:07 +0100)]
label: Remove some unneeded conditionals

We are never passing NULL here.

10 years agoshortcutlabel: Use a label directly
Timm Bäder [Sat, 9 Jan 2016 16:15:29 +0000 (17:15 +0100)]
shortcutlabel: Use a label directly

We can everything we need without the frame around it now.

10 years agoGDK W32: Don't use WM-drawn shadow for tooltips
Руслан Ижбулатов [Sun, 27 Dec 2015 05:05:39 +0000 (05:05 +0000)]
GDK W32: Don't use WM-drawn shadow for tooltips

This prevents WM from drawing shadows around tooltip windows,
which, in Adwaita, should have no shadow and are CSD-ish (which means
that tooltip window is larger than it looks, and WM draws the shadow
only on the outside, leaving a gap between the visible tooltip edge and
the shadow).

https://bugzilla.gnome.org/show_bug.cgi?id=759898

10 years agowin32: remove _gdk_root global variable
Paolo Borelli [Thu, 17 Dec 2015 23:36:57 +0000 (00:36 +0100)]
win32: remove _gdk_root global variable

10 years agoEnsure that the fstat fix is not applied on x86_64
Руслан Ижбулатов [Thu, 14 Jan 2016 12:51:26 +0000 (12:51 +0000)]
Ensure that the fstat fix is not applied on x86_64

10 years agoexpander: center the arrow
Matthias Clasen [Thu, 14 Jan 2016 12:33:04 +0000 (07:33 -0500)]
expander: center the arrow

In lieu of more sophisticated alignment, we need to at least
center the arrow allocation wrt to the label.

10 years agoW32: Ensure that correct statting function is used by iconcache
Руслан Ижбулатов [Thu, 14 Jan 2016 09:40:58 +0000 (09:40 +0000)]
W32: Ensure that correct statting function is used by iconcache

With Mingw-w64 fstat() can be an inline function that
calls _fstat32() or _fstat64(), depending on some macros.
And if LFS is enabled, fstat() is defined to turn into
_fstat32i64() or _fstat64(). And some/all of the above
might also be macros as well. Side-step all that mess
and excplicitly re-define fstat as _fstat32, which is
guaranteed to use a version of "stat" struct that
has 32-bit size and time fields, which is what we want.

https://bugzilla.gnome.org/show_bug.cgi?id=760615

10 years agofont chooser: Add a CSS name
Matthias Clasen [Thu, 14 Jan 2016 04:42:35 +0000 (23:42 -0500)]
font chooser: Add a CSS name

The CSS name for GtkFontChooserWidget is fontchooser.

10 years agoapp chooser: Set a CSS name
Matthias Clasen [Thu, 14 Jan 2016 04:38:14 +0000 (23:38 -0500)]
app chooser: Set a CSS name

The CSS name for GtkAppChooserWidget is appchooser.

10 years agoprint dialog: Set a CSS name
Matthias Clasen [Thu, 14 Jan 2016 04:37:08 +0000 (23:37 -0500)]
print dialog: Set a CSS name

The CSS name for GtkPrintUnixDialog is printdialog.

10 years agofile chooser: Set a CSS name
Matthias Clasen [Thu, 14 Jan 2016 04:35:22 +0000 (23:35 -0500)]
file chooser: Set a CSS name

The CSS name for GtkFileChooserWidget is ... filechooser.

10 years agocolor chooser: Set a CSS name
Matthias Clasen [Thu, 14 Jan 2016 04:34:03 +0000 (23:34 -0500)]
color chooser: Set a CSS name

The CSS name for GtkColorChooserWidget is ... colorchooser.

10 years agoinspector: Don't select 'randomly'
Matthias Clasen [Thu, 14 Jan 2016 04:24:38 +0000 (23:24 -0500)]
inspector: Don't select 'randomly'

While rescanning the object tree, we were emitting ::object-selected
signals, possibly causing wild blinking in the application window.
Don't do that.

https://bugzilla.gnome.org/show_bug.cgi?id=760572

10 years agoExpand CSS icon property docs a bit
Matthias Clasen [Thu, 14 Jan 2016 04:06:32 +0000 (23:06 -0500)]
Expand CSS icon property docs a bit

10 years agoFix doc syntax
Matthias Clasen [Thu, 14 Jan 2016 03:47:37 +0000 (22:47 -0500)]
Fix doc syntax

10 years agoImprove docs for icon-related CSS properties
Matthias Clasen [Wed, 13 Jan 2016 21:25:41 +0000 (16:25 -0500)]
Improve docs for icon-related CSS properties

Clarify the relation between the various properties and the
icon loading functions.

10 years agoMake -gtk-icontheme() use -gtk-icon-palette
Matthias Clasen [Wed, 13 Jan 2016 21:17:44 +0000 (16:17 -0500)]
Make -gtk-icontheme() use -gtk-icon-palette

This makes it possible to recolor themed icons with -gtk-icon-palette,
regardless whether they are loaded by the theme or the application.

10 years agoMove the -gtk-icon-palette property up
Matthias Clasen [Wed, 13 Jan 2016 21:16:39 +0000 (16:16 -0500)]
Move the -gtk-icon-palette property up

Other properties will start depending on it in subsequent
commits, so move it up to prevent ordering problems.

10 years agocolor swatch: Use right allocation for window
Matthias Clasen [Wed, 13 Jan 2016 18:58:52 +0000 (13:58 -0500)]
color swatch: Use right allocation for window

Generally, input-only windows that correspond to CSS boxes
should be sized to the border allocation of the gadget.

10 years agoUpdated Brazilian Portuguese translation
Rafael Fontenelle [Wed, 13 Jan 2016 18:55:36 +0000 (18:55 +0000)]
Updated Brazilian Portuguese translation

10 years agoAdd css node tests for right-to-left levelbars
Matthias Clasen [Wed, 13 Jan 2016 14:31:25 +0000 (09:31 -0500)]
Add css node tests for right-to-left levelbars

10 years agonotebook: fix a GCC warning
Cosimo Cecchi [Wed, 13 Jan 2016 16:30:02 +0000 (08:30 -0800)]
notebook: fix a GCC warning

10 years agoAdd css node tests for paned node ordering
Matthias Clasen [Wed, 13 Jan 2016 05:41:44 +0000 (00:41 -0500)]
Add css node tests for paned node ordering

10 years agopaned: Update node ordering according to text direction
Matthias Clasen [Wed, 13 Jan 2016 05:40:11 +0000 (00:40 -0500)]
paned: Update node ordering according to text direction

This was overlooked in the initial node conversion.

10 years agoGtkBox: Documentation tweak
Matthias Clasen [Wed, 13 Jan 2016 05:39:53 +0000 (00:39 -0500)]
GtkBox: Documentation tweak

10 years agoUpdate expected output of notebook css node test
Matthias Clasen [Wed, 13 Jan 2016 05:26:48 +0000 (00:26 -0500)]
Update expected output of notebook css node test

The stack node is new.

10 years agonotebook: Document the .dnd style class
Matthias Clasen [Wed, 13 Jan 2016 05:24:40 +0000 (00:24 -0500)]
notebook: Document the .dnd style class

We should aim to document all style classes that themes
can encounter during the normal operation of a widget.

10 years agoUse convenience API that was introduced recently
Matthias Clasen [Wed, 13 Jan 2016 05:05:16 +0000 (00:05 -0500)]
Use convenience API that was introduced recently

Use gtk_css_gadget_set_state in all the places where we previously
were getting a node from a gadget, just to call gtk_css_node_set_state.

10 years agobuiltin icon: Don't save/restore cairo state
Matthias Clasen [Wed, 13 Jan 2016 05:01:14 +0000 (00:01 -0500)]
builtin icon: Don't save/restore cairo state

The reason why this was introduced is now handled in
gtk_css_stylke_render_icon since commit
0138af9f9684c0ec436b37e5962e9f82607d3ff8.

10 years agobox gadget: Add some documentation
Matthias Clasen [Wed, 13 Jan 2016 04:57:35 +0000 (23:57 -0500)]
box gadget: Add some documentation

10 years agobox: Document child node ordering
Matthias Clasen [Wed, 13 Jan 2016 04:40:28 +0000 (23:40 -0500)]
box: Document child node ordering

10 years agoQEMU USB Tablet is not really a tablet - it's a trick
Dominique Leuenberger [Tue, 12 Jan 2016 08:29:00 +0000 (08:29 +0000)]
QEMU USB Tablet is not really a tablet - it's a trick

Unfortunately, Qemu gives us this confusing device to work with,
and the best we can do is filter it out based on its name.

https://bugzilla.gnome.org/show_bug.cgi?id=760445

10 years agobroadway: Call setlocale in main function of broadwayd
Ting-Wei Lan [Mon, 11 Jan 2016 03:46:45 +0000 (11:46 +0800)]
broadway: Call setlocale in main function of broadwayd

It is required to correctly show translated messages on some locales.

https://bugzilla.gnome.org/show_bug.cgi?id=760416

10 years agoswitch: Fix text positioning
Timm Bäder [Tue, 12 Jan 2016 20:37:27 +0000 (21:37 +0100)]
switch: Fix text positioning

https://bugzilla.gnome.org/show_bug.cgi?id=760509

10 years agoswitch: Don't include margins in input window size
Timm Bäder [Tue, 12 Jan 2016 20:36:37 +0000 (21:36 +0100)]
switch: Don't include margins in input window size

https://bugzilla.gnome.org/show_bug.cgi?id=760509

10 years agomodelbutton: Don't include margins in input window size
Timm Bäder [Tue, 12 Jan 2016 19:25:25 +0000 (20:25 +0100)]
modelbutton: Don't include margins in input window size

https://bugzilla.gnome.org/show_bug.cgi?id=760509

10 years agobutton: Don't include margins in input window size
Timm Bäder [Tue, 12 Jan 2016 19:18:08 +0000 (20:18 +0100)]
button: Don't include margins in input window size

And do the same thing for GtkCheckButton

https://bugzilla.gnome.org/show_bug.cgi?id=760509

10 years agoentry: typo
Timm Bäder [Fri, 8 Jan 2016 16:30:47 +0000 (17:30 +0100)]
entry: typo

10 years agogdkseat: remove return from gdk_seat_ungrab
Alberts Muktupāvels [Tue, 12 Jan 2016 07:51:26 +0000 (09:51 +0200)]
gdkseat: remove return from gdk_seat_ungrab

10 years agoRemove stray semicolon
Timm Bäder [Tue, 12 Jan 2016 08:32:04 +0000 (09:32 +0100)]
Remove stray semicolon

Gets rid of a mixed code/declaration warning.

10 years agoHighContrast: Fix selection in .views
Matthias Clasen [Tue, 12 Jan 2016 04:20:26 +0000 (23:20 -0500)]
HighContrast: Fix selection in .views

Copy Adwaita fixes from 21a2fce8ba2a48fe3781e7a1f02b33e3a7bfd9ac.

10 years agoFix corner manipulation when growing rounded rects
Matthias Clasen [Tue, 12 Jan 2016 03:48:35 +0000 (22:48 -0500)]
Fix corner manipulation when growing rounded rects

This addresses problems with uneven border radius',
pointed out by Lapo.

10 years agoGTK Notebook: use the right enum type
Ben Iofel [Tue, 12 Jan 2016 00:13:30 +0000 (19:13 -0500)]
GTK Notebook: use the right enum type

10 years agoAdwaita: popover style fixes
Lapo Calamandrei [Tue, 12 Jan 2016 00:03:47 +0000 (01:03 +0100)]
Adwaita: popover style fixes

10 years agoAdwaita: make selection visible in treeview derived widgets
Lapo Calamandrei [Mon, 11 Jan 2016 23:16:12 +0000 (00:16 +0100)]
Adwaita: make selection visible in treeview derived widgets

See https://bugzilla.gnome.org/show_bug.cgi?id=757503

10 years agoAdwaita: fix separator margin in popovers
Hashem Nasarat [Mon, 11 Jan 2016 06:02:41 +0000 (01:02 -0500)]
Adwaita: fix separator margin in popovers

Commit 0b96b8a1 set margins via css, but accidentally changed the
semantics of margins for separators in popovers so that any separator
in a gtkpopover had a margin. This meant that the separators in
GtkListBoxes in popovers also had a margin around their separators, and
this is not what we want because it doesn't match separators in
listboxes not in popovers.

https://bugzilla.gnome.org/show_bug.cgi?id=760427

10 years agoImprove deprecation note for gdk_device_manager_get_client_pointer
Matthias Clasen [Mon, 11 Jan 2016 20:09:47 +0000 (15:09 -0500)]
Improve deprecation note for gdk_device_manager_get_client_pointer

List gdk_seat_get_pointer as replacement. Suggested in
https://bugzilla.gnome.org/show_bug.cgi?id=759785

10 years agoFix the deprecation note for gdk_device_manager_list_devices
Matthias Clasen [Mon, 11 Jan 2016 20:06:15 +0000 (15:06 -0500)]
Fix the deprecation note for gdk_device_manager_list_devices

Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=759785

10 years agoFix the annotation for gdk_seat_get_slaves
Matthias Clasen [Mon, 11 Jan 2016 20:04:32 +0000 (15:04 -0500)]
Fix the annotation for gdk_seat_get_slaves

Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=759785

10 years agoGtkWidget: Fix motion event consumption detection for touch-only gestures
Carlos Garnacho [Mon, 11 Jan 2016 19:06:14 +0000 (20:06 +0100)]
GtkWidget: Fix motion event consumption detection for touch-only gestures

If a GtkGestureSingle is set as touch-only, pointer events would be
discarded without giving an opportunity to the regular GtkGesture
handler to manage those.

Because the pointer events weren't actually managed by the gesture,
gtk_gesture_get_sequence_state() (rather unhelpfully here) will resort
to returning GTK_EVENT_SEQUENCE_NONE, which is in turn interpreted
by _gtk_widget_consumes_motion() as "may be handling the events for
this sequence", because gestures in this state presumably handle
the events, just that it's not "claimed" yet.

Instead, use gtk_gesture_handles_sequence(), which will perform the
expected check on the event sequence being managed, as we expect
here.

10 years agoActually deprecate GtkNotebook::has-tab-gap
Matthias Clasen [Mon, 11 Jan 2016 18:58:37 +0000 (13:58 -0500)]
Actually deprecate GtkNotebook::has-tab-gap

10 years agonotebook: Update CSS node docs
Matthias Clasen [Mon, 11 Jan 2016 18:55:23 +0000 (13:55 -0500)]
notebook: Update CSS node docs

The stack node is new.

10 years agonotebook: Don't reparent tab label when drag stops
Benjamin Otte [Mon, 11 Jan 2016 16:52:38 +0000 (17:52 +0100)]
notebook: Don't reparent tab label when drag stops

Use the same unrealize + set_parent_window() trick that we used in
6d5edd18cf5637274762b7a51488d27d5bed600d when dragging starts.

10 years agonotebook: Add .dnd style class to tabs during reorder
Benjamin Otte [Mon, 11 Jan 2016 16:46:15 +0000 (17:46 +0100)]
notebook: Add .dnd style class to tabs during reorder

10 years agonotebook: Don't unparent tab label for drag
Benjamin Otte [Sat, 9 Jan 2016 13:25:26 +0000 (14:25 +0100)]
notebook: Don't unparent tab label for drag

When a tab drag starts, we need to move the tab label into the drag
window via gtk_widget_set_parent_window().
If we don't unparent, but just unrealize the widget, we don't lose the
cssnode position.

10 years agonotebook: Don't limit motion notify framerate
Benjamin Otte [Thu, 7 Jan 2016 14:54:58 +0000 (15:54 +0100)]
notebook: Don't limit motion notify framerate

We have a frameclock for that these days.

In particular, this limiting worked at 45fps when monitors are all 60fps.

10 years agonotebook: Remove outdated style properties from themes
Benjamin Otte [Thu, 7 Jan 2016 11:30:05 +0000 (12:30 +0100)]
notebook: Remove outdated style properties from themes

No replacement provided, the notebook will have to be redone anyway.

10 years agonotebook: Don't store gadget allocation twice
Benjamin Otte [Thu, 7 Jan 2016 11:28:24 +0000 (12:28 +0100)]
notebook: Don't store gadget allocation twice

If we care about a gadget's allocation, we can ask it. There's no need
to store it in GtkNotebookPage.allocation.

10 years agonotebook: No need to recompute remaining space
Benjamin Otte [Thu, 7 Jan 2016 11:21:25 +0000 (12:21 +0100)]
notebook: No need to recompute remaining space

The value is correct.

In particular, subtracting width on notebooks with tabs on left/right is
a very bad idea.

10 years agonotebook: Port arrows to be gadgets
Benjamin Otte [Wed, 6 Jan 2016 16:41:41 +0000 (17:41 +0100)]
notebook: Port arrows to be gadgets

Also deprecate the arrow-spacing style property.

10 years agonotebook: Pass full allocation instead of min and max value
Benjamin Otte [Tue, 29 Dec 2015 18:31:04 +0000 (19:31 +0100)]
notebook: Pass full allocation instead of min and max value

10 years agonotebook: Pass allocation as argument
Benjamin Otte [Tue, 29 Dec 2015 18:18:02 +0000 (19:18 +0100)]
notebook: Pass allocation as argument

... instead of querying it later.

10 years agonotebook: Simplify allocation code
Benjamin Otte [Tue, 29 Dec 2015 03:42:29 +0000 (04:42 +0100)]
notebook: Simplify allocation code

10 years agonotebook: Identify existence of arrows differently
Benjamin Otte [Fri, 25 Dec 2015 22:44:08 +0000 (23:44 +0100)]
notebook: Identify existence of arrows differently

Instead of having gbooleans in the priv struct, just look at the
existence of priv->arrow_node[i].

10 years agonotebook: Convert tab nodes to gadgets
Benjamin Otte [Fri, 25 Dec 2015 01:39:43 +0000 (02:39 +0100)]
notebook: Convert tab nodes to gadgets

The code does many bad things, so we get a lot of warning spew. Ignore
this for now, fixes will follow.

10 years agonotebook: Assume tab allocations always change
Benjamin Otte [Fri, 25 Dec 2015 01:12:15 +0000 (02:12 +0100)]
notebook: Assume tab allocations always change

This causes more redraws, but saves a bunch of code.

10 years agonotebook: Remove weird hack where the current page was special-cased
Benjamin Otte [Fri, 25 Dec 2015 00:27:22 +0000 (01:27 +0100)]
notebook: Remove weird hack where the current page was special-cased

I don't even know what it does, but it assumed that the current page was
always as large or larger than any other page. And that isn't true.

10 years agoboxgadget: Handle css nodes
Benjamin Otte [Fri, 25 Dec 2015 00:19:31 +0000 (01:19 +0100)]
boxgadget: Handle css nodes

Automatically insert the cssnode into the box gadget's node's children at
the right place and remove it again when done.

10 years agonotebook: Replace redraw_tabs() with gadget_queue_draw(tabs_gadget)
Benjamin Otte [Thu, 24 Dec 2015 19:38:24 +0000 (20:38 +0100)]
notebook: Replace redraw_tabs() with gadget_queue_draw(tabs_gadget)

10 years agonotebook: Don't queue redraw of tabs junction
Benjamin Otte [Thu, 24 Dec 2015 19:34:54 +0000 (20:34 +0100)]
notebook: Don't queue redraw of tabs junction

There is no junction anymore, so don't try to redraw it.

10 years agogadget: Add queue_resize/allocate/draw() functions
Benjamin Otte [Thu, 24 Dec 2015 19:33:36 +0000 (20:33 +0100)]
gadget: Add queue_resize/allocate/draw() functions

10 years agonotebook: Convert tabs node to a gadget
Benjamin Otte [Thu, 24 Dec 2015 14:26:11 +0000 (15:26 +0100)]
notebook: Convert tabs node to a gadget

And in turn, convert the header gadget to a box gadget.

10 years agoboxgadget: Add
Benjamin Otte [Wed, 23 Dec 2015 03:09:30 +0000 (04:09 +0100)]
boxgadget: Add

Adds a GtkBoxGadget that is a Gadget that behaves like a GtkBox.

Use this gadget to implement the notebook base gadget.

10 years agonotebook: Remove unused function call
Benjamin Otte [Wed, 23 Dec 2015 02:40:48 +0000 (03:40 +0100)]
notebook: Remove unused function call

10 years agonotebook: Simplify event window position computation
Benjamin Otte [Wed, 23 Dec 2015 02:39:12 +0000 (03:39 +0100)]
notebook: Simplify event window position computation

The event window should overlay the header gadget, so just return its
position.

10 years agonotebook: Introduce gtk_notebook_has_current_page()
Benjamin Otte [Wed, 23 Dec 2015 00:18:30 +0000 (01:18 +0100)]
notebook: Introduce gtk_notebook_has_current_page()

GtkNotebook does not switch the current page if all pages are hidden. So
it may be that no visible page exsits, but there still is a current
page set.

We culd clear the current page, but I'm unsure about backwards
compatibility.

So instead, this new function handles that case.

10 years agonotebook: Use gtk_container_class_handle_border_width()
Benjamin Otte [Tue, 22 Dec 2015 22:03:38 +0000 (23:03 +0100)]
notebook: Use gtk_container_class_handle_border_width()

10 years agonotebook: Convert header node to a gadget
Benjamin Otte [Sat, 19 Dec 2015 21:25:34 +0000 (22:25 +0100)]
notebook: Convert header node to a gadget

This allows reworking the content node to do real height-for-width.

The content node also takes care of border width, but we might want to
have the toplevel do it or just get rid of it.

10 years agogadget: Add helpers for modifying state
Benjamin Otte [Sat, 19 Dec 2015 07:46:28 +0000 (08:46 +0100)]
gadget: Add helpers for modifying state

They will be used in future commits.

I also was too lazy to convert existing widgets.

10 years agonotebook: Add a stack gadget
Benjamin Otte [Sat, 19 Dec 2015 07:35:18 +0000 (08:35 +0100)]
notebook: Add a stack gadget

The stack gadget contains all the child widgets.

10 years agonotebook: Remove extra calls to gtk_notebook_pages_allocate()
Benjamin Otte [Sat, 19 Dec 2015 07:10:35 +0000 (08:10 +0100)]
notebook: Remove extra calls to gtk_notebook_pages_allocate()

The function is called during size_allocate() and doesn't need to be
called elsewhere, as all other callers call queue_resize() already.

10 years agonotebook: Remove unnessecary gtk_widget_set_mapped()
Benjamin Otte [Sat, 19 Dec 2015 07:04:41 +0000 (08:04 +0100)]
notebook: Remove unnessecary gtk_widget_set_mapped()

We chain up, and the chainedup function calls this for us.

10 years agonotebook: Simplify gtk_notebook_map()
Benjamin Otte [Sat, 19 Dec 2015 07:03:41 +0000 (08:03 +0100)]
notebook: Simplify gtk_notebook_map()

We set visibility on our children properly, so we can simply chain up
and let the GtkContainer implementation do the mapping of children.

10 years agonotebook: Remove irrelevant case
Benjamin Otte [Sat, 19 Dec 2015 05:58:14 +0000 (06:58 +0100)]
notebook: Remove irrelevant case

The page is never the current page, because it was just created and the
current page wasn't changed yet.

10 years agonotebook: No page switching in size request code
Benjamin Otte [Sat, 19 Dec 2015 05:56:48 +0000 (06:56 +0100)]
notebook: No page switching in size request code

We have page switching under control now, we don't need to check every
get_preferred_size() call.

10 years agonotebook: Set the current page when none is set
Benjamin Otte [Sat, 19 Dec 2015 05:56:04 +0000 (06:56 +0100)]
notebook: Set the current page when none is set

This case happens when you gtk_widget_show_all (notebook).

10 years agonotebook: Draw the same things, no matter the show-border value
Benjamin Otte [Sat, 19 Dec 2015 02:57:43 +0000 (03:57 +0100)]
notebook: Draw the same things, no matter the show-border value

show-border modifies the "frame" style class on the notebook node, but
not what we actually draw.

10 years agonotebook: Turn the base notebook into a gadget
Benjamin Otte [Thu, 17 Dec 2015 23:47:03 +0000 (00:47 +0100)]
notebook: Turn the base notebook into a gadget

10 years agonotebook: Draw tab label while drawing tab
Benjamin Otte [Thu, 17 Dec 2015 12:16:12 +0000 (13:16 +0100)]
notebook: Draw tab label while drawing tab

Instead of having special case code doing it.

10 years agonotebook: Don't translate before painting notebook
Benjamin Otte [Thu, 17 Dec 2015 04:51:38 +0000 (05:51 +0100)]
notebook: Don't translate before painting notebook

This will allow us to draw children directly from within the notebook
drawing code, which will remove a bunch of special casing.

10 years agonotebook: Deprecate and stop supporting has-tab-gap style property
Benjamin Otte [Thu, 17 Dec 2015 04:27:51 +0000 (05:27 +0100)]
notebook: Deprecate and stop supporting has-tab-gap style property

10 years agonotebook: Ignore and deprecate style properties
Benjamin Otte [Thu, 17 Dec 2015 01:39:24 +0000 (02:39 +0100)]
notebook: Ignore and deprecate style properties

Deprecate initial-gap, tab-curvature and tab-overlap properties. All
their features can be achieved using CSS.

This CSS achieves the same effect as a 10px initial gap:
  notebook header {
    margin-left: 10px;
    margin-right: 10px;
  }

A tab overlap of 10px can be achieved via:
  notebook tabs {
    margin-left: 10px;
  }
  notebook tab {
    margin-left: -10px;
  }

And tab curvature is essentially the same as padding or border on a tab.

10 years agorendericon: Save and restore cairo matrix
Benjamin Otte [Wed, 6 Jan 2016 17:14:11 +0000 (18:14 +0100)]
rendericon: Save and restore cairo matrix

... instead of requiring cairo_save()/cairo_restore().

10 years agotestnotebookdnd: Add an action widget
Benjamin Otte [Thu, 24 Dec 2015 17:21:38 +0000 (18:21 +0100)]
testnotebookdnd: Add an action widget

Just so we have some test that tests action widgets.

10 years agodnd: When setting a dnd icon widget, unset old one
Benjamin Otte [Sat, 19 Dec 2015 07:09:06 +0000 (08:09 +0100)]
dnd: When setting a dnd icon widget, unset old one

Setting a DND icon twice should actually work and not cause warnings the
2nd time.

10 years agoUpdated Japanese translation
Jiro Matsuzawa [Mon, 11 Jan 2016 14:58:16 +0000 (23:58 +0900)]
Updated Japanese translation

Change B series paper names in accordance with the Japanese standards.

10 years agoFix a small mistake in stylecontext docs
Krzesimir Nowak [Mon, 11 Jan 2016 11:05:18 +0000 (12:05 +0100)]
Fix a small mistake in stylecontext docs

Fix the "will be also be" to become "will also be".